package com.wrupple.muba.catalogs.client.module.services.presentation.impl;

import com.google.inject.Inject;
import com.wrupple.muba.catalogs.client.module.services.logic.CatalogDescriptionService;
import com.wrupple.muba.catalogs.client.module.services.logic.CatalogEntryJoiningStrategy;
import com.wrupple.muba.catalogs.client.module.services.logic.CatalogEntryKeyProvider;
import com.wrupple.muba.catalogs.client.module.services.logic.GenericDataProvider;
import com.wrupple.muba.catalogs.domain.JsCatalogKey;
import com.wrupple.muba.common.shared.State.StorageManager;

public class GenericCompositeDataProvider extends
		CompositeDataProvider<JsCatalogKey> implements GenericDataProvider {

	@Inject
	public GenericCompositeDataProvider(StorageManager storageManager,
			CatalogEntryKeyProvider keyprovider,
			CatalogDescriptionService descriptionService,
			CatalogEntryJoiningStrategy assemblyService) {
		super(storageManager, keyprovider, descriptionService, assemblyService);
	}

	@Override
	protected String getIncomingForeignJoinableFieldId(String foreignCatalog) {
		// only used with ephemeral fields which are not supported 
		return null;
	}

	@Override
	protected String getCatalogKeyFieldId(String foreignCatalog) {
		return "id";
	}

	
}
